package com.kot.backend.service.impl.pk;

import com.kot.backend.consumer.WebSocketServer;
import com.kot.backend.service.pk.StartGameService;
import org.springframework.stereotype.Service;

@Service
public class StartGameServiceImpl implements StartGameService {
    @Override
    public String startGame(Integer aId , Integer bId) {
//        System.out.println("start game: " + aId + " " + bId);
        WebSocketServer.startGame(aId, bId);//通过类名调用WebSocketServer类中的startGame方法，向前端发送匹配结果
        return "start game success";
    }
}
